package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_finance].[dbo].TCW_FinancesApiData", catalog="Id")
public class TcwFinancesApiData extends BaseEntity<TcwFinancesApiData> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Type", nameJava="type", typeDataBase="varchar")
	private String type;
	@YsField(nameDataBase="DataType", nameJava="dataType", typeDataBase="varchar")
	private String dataType;
	@YsField(nameDataBase="ThereDataType", nameJava="thereDataType", typeDataBase="varchar")
	private String thereDataType;
	@YsField(nameDataBase="Sku", nameJava="sku", typeDataBase="varchar")
	private String sku;
	@YsField(nameDataBase="Quantity", nameJava="quantity", typeDataBase="int")
	private Integer quantity;
	@YsField(nameDataBase="Total", nameJava="total", typeDataBase="decimal")
	private BigDecimal total;
	@YsField(nameDataBase="FinancialEventGroupId", nameJava="financialEventGroupId", typeDataBase="varchar")
	private String financialEventGroupId;
	@YsField(nameDataBase="GroupId", nameJava="groupId", typeDataBase="varchar")
	private String groupId;
	@YsField(nameDataBase="AmazonOrderId", nameJava="amazonOrderId", typeDataBase="varchar")
	private String amazonOrderId;
	@YsField(nameDataBase="AmountsJson", nameJava="amountsJson", typeDataBase="varchar")
	private String amountsJson;
	@YsField(nameDataBase="PurchaseDate", nameJava="purchaseDate", typeDataBase="datetime")
	private Date purchaseDate;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwFinancesApiData setId(Long id) {
		this.id = id;
		return this;
	}
	public String getType() {
		return type;
	}
	public TcwFinancesApiData setType(String type) {
		this.type = type;
		return this;
	}
	public String getDataType() {
		return dataType;
	}
	public TcwFinancesApiData setDataType(String dataType) {
		this.dataType = dataType;
		return this;
	}
	public String getThereDataType() {
		return thereDataType;
	}
	public TcwFinancesApiData setThereDataType(String thereDataType) {
		this.thereDataType = thereDataType;
		return this;
	}
	public String getSku() {
		return sku;
	}
	public TcwFinancesApiData setSku(String sku) {
		this.sku = sku;
		return this;
	}
	public Integer getQuantity() {
		return quantity;
	}
	public TcwFinancesApiData setQuantity(Integer quantity) {
		this.quantity = quantity;
		return this;
	}
	public BigDecimal getTotal() {
		return total;
	}
	public TcwFinancesApiData setTotal(BigDecimal total) {
		this.total = total;
		return this;
	}
	public String getFinancialEventGroupId() {
		return financialEventGroupId;
	}
	public TcwFinancesApiData setFinancialEventGroupId(String financialEventGroupId) {
		this.financialEventGroupId = financialEventGroupId;
		return this;
	}
	public String getGroupId() {
		return groupId;
	}
	public TcwFinancesApiData setGroupId(String groupId) {
		this.groupId = groupId;
		return this;
	}
	public String getAmazonOrderId() {
		return amazonOrderId;
	}
	public TcwFinancesApiData setAmazonOrderId(String amazonOrderId) {
		this.amazonOrderId = amazonOrderId;
		return this;
	}
	public String getAmountsJson() {
		return amountsJson;
	}
	public TcwFinancesApiData setAmountsJson(String amountsJson) {
		this.amountsJson = amountsJson;
		return this;
	}
	public Date getPurchaseDate() {
		return purchaseDate;
	}
	public TcwFinancesApiData setPurchaseDate(Date purchaseDate) {
		this.purchaseDate = purchaseDate;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwFinancesApiData setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwFinancesApiData setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwFinancesApiData setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwFinancesApiData tcwFinancesApiData(
		String type,
		String dataType,
		String thereDataType,
		String sku,
		Integer quantity,
		BigDecimal total,
		String financialEventGroupId,
		String groupId,
		String amazonOrderId,
		String amountsJson,
		Date purchaseDate,
		Integer status
			) {
		TcwFinancesApiData entity = new TcwFinancesApiData();
		entity.setType(type);
		entity.setDataType(dataType);
		entity.setThereDataType(thereDataType);
		entity.setSku(sku);
		entity.setQuantity(quantity);
		entity.setTotal(total);
		entity.setFinancialEventGroupId(financialEventGroupId);
		entity.setGroupId(groupId);
		entity.setAmazonOrderId(amazonOrderId);
		entity.setAmountsJson(amountsJson);
		entity.setPurchaseDate(purchaseDate);
		entity.setStatus(status);
		return entity;
	}
}